#!/bin/bash -e

echo "Preparing archives..."

echo "trunk/ -> geant4-labs-rXXX.zip"
svn -q export trunk/ geant4-labs/
rev=$(svn info trunk/ | sed -n 's,Last Changed Rev: ,, p')
zip -rq geant4-labs-r${rev}.zip geant4-labs/
rm -r geant4-labs/

echo "fr/ -> geant4-labs-fr-rXXX.zip"
svn -q export fr/ geant4-labs-fr/
rev=$(svn info fr/ | sed -n 's,Last Changed Rev: ,, p')
zip -rq geant4-labs-fr-r$rev.zip geant4-labs-fr/
rm -r geant4-labs-fr/

